profiler: allow using gdk profiler functions without braces
authorChristian Hergert <chergert@redhat.com>
Tue, 2 Feb 2021 22:41:23 +0000 (14:41 -0800)
committerChristian Hergert <chergert@redhat.com>
Mon, 8 Feb 2021 19:29:32 +0000 (11:29 -0800)
commit226dc496024ef46e6cb5562ee61b11ea0fd3d954
tree307360174270072db7cf62184e509f22834fcd69
parent207569c4ed33ee6da751e6e1d4eeb162febafb55
profiler: allow using gdk profiler functions without braces

Just compiling these out means you have to write code slightly differently
so that you don't end up with "if ();" afterwards.

This adds a "do {} while (0)" so that we're still semantically a statement
but will also compile out.
gdk/gdkprofilerprivate.h